Optimal. Leaf size=144 \[ \frac {2 (7 A+6 B) \tan (c+d x) (a \sec (c+d x)+a)^{3/2}}{35 a d}-\frac {4 (7 A+6 B) \tan (c+d x) \sqrt {a \sec (c+d x)+a}}{105 d}+\frac {2 a (7 A+6 B) \tan (c+d x)}{15 d \sqrt {a \sec (c+d x)+a}}+\frac {2 a B \tan (c+d x) \sec ^3(c+d x)}{7 d \sqrt {a \sec (c+d x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.28, antiderivative size = 144, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.121, Rules used = {4016, 3800, 4001, 3792} \[ \frac {2 (7 A+6 B) \tan (c+d x) (a \sec (c+d x)+a)^{3/2}}{35 a d}-\frac {4 (7 A+6 B) \tan (c+d x) \sqrt {a \sec (c+d x)+a}}{105 d}+\frac {2 a (7 A+6 B) \tan (c+d x)}{15 d \sqrt {a \sec (c+d x)+a}}+\frac {2 a B \tan (c+d x) \sec ^3(c+d x)}{7 d \sqrt {a \sec (c+d x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3792
Rule 3800
Rule 4001
Rule 4016
Rubi steps
\begin {align*} \int \sec ^3(c+d x) \sqrt {a+a \sec (c+d x)} (A+B \sec (c+d x)) \, dx &=\frac {2 a B \sec ^3(c+d x) \tan (c+d x)}{7 d \sqrt {a+a \sec (c+d x)}}+\frac {1}{7} (7 A+6 B) \int \sec ^3(c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {2 a B \sec ^3(c+d x) \tan (c+d x)}{7 d \sqrt {a+a \sec (c+d x)}}+\frac {2 (7 A+6 B) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{35 a d}+\frac {(2 (7 A+6 B)) \int \sec (c+d x) \left (\frac {3 a}{2}-a \sec (c+d x)\right ) \sqrt {a+a \sec (c+d x)} \, dx}{35 a}\\ &=\frac {2 a B \sec ^3(c+d x) \tan (c+d x)}{7 d \sqrt {a+a \sec (c+d x)}}-\frac {4 (7 A+6 B) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{105 d}+\frac {2 (7 A+6 B) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{35 a d}+\frac {1}{15} (7 A+6 B) \int \sec (c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {2 a (7 A+6 B) \tan (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a B \sec ^3(c+d x) \tan (c+d x)}{7 d \sqrt {a+a \sec (c+d x)}}-\frac {4 (7 A+6 B) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{105 d}+\frac {2 (7 A+6 B) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{35 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.29, size = 81, normalized size = 0.56 \[ \frac {2 a \tan (c+d x) \left (3 (7 A+6 B) \sec ^2(c+d x)+4 (7 A+6 B) \sec (c+d x)+8 (7 A+6 B)+15 B \sec ^3(c+d x)\right )}{105 d \sqrt {a (\sec (c+d x)+1)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 105, normalized size = 0.73 \[ \frac {2 \, {\left (8 \, {\left (7 \, A + 6 \, B\right )} \cos \left (d x + c\right )^{3} + 4 \, {\left (7 \, A + 6 \, B\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (7 \, A + 6 \, B\right )} \cos \left (d x + c\right ) + 15 \, B\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{105 \, {\left (d \cos \left (d x + c\right )^{4} + d \cos \left (d x + c\right )^{3}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 14.36, size = 222, normalized size = 1.54 \[ -\frac {2 \, {\left (105 \, \sqrt {2} A a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 105 \, \sqrt {2} B a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) - {\left (175 \, \sqrt {2} A a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 105 \, \sqrt {2} B a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) - {\left (119 \, \sqrt {2} A a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 147 \, \sqrt {2} B a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) - {\left (49 \, \sqrt {2} A a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 27 \, \sqrt {2} B a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{105 \, {\left (a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - a\right )}^{3} \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.51, size = 116, normalized size = 0.81 \[ -\frac {2 \left (-1+\cos \left (d x +c \right )\right ) \left (56 A \left (\cos ^{3}\left (d x +c \right )\right )+48 B \left (\cos ^{3}\left (d x +c \right )\right )+28 A \left (\cos ^{2}\left (d x +c \right )\right )+24 B \left (\cos ^{2}\left (d x +c \right )\right )+21 A \cos \left (d x +c \right )+18 B \cos \left (d x +c \right )+15 B \right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}}{105 d \cos \left (d x +c \right )^{3} \sin \left (d x +c \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.16, size = 407, normalized size = 2.83 \[ \frac {\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,\left (-\frac {A\,8{}\mathrm {i}}{5\,d}+\frac {B\,16{}\mathrm {i}}{5\,d}+{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\left (\frac {B\,16{}\mathrm {i}}{35\,d}+\frac {\left (56\,A+112\,B\right )\,1{}\mathrm {i}}{35\,d}\right )\right )}{\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^2}+\frac {\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,\left (\frac {A\,8{}\mathrm {i}}{7\,d}+{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\left (\frac {A\,8{}\mathrm {i}}{7\,d}-\frac {\left (8\,A+16\,B\right )\,1{}\mathrm {i}}{7\,d}\right )-\frac {\left (8\,A+16\,B\right )\,1{}\mathrm {i}}{7\,d}\right )}{\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^3}+\frac {\left (\frac {A\,8{}\mathrm {i}}{3\,d}-\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\left (56\,A+48\,B\right )\,1{}\mathrm {i}}{105\,d}\right )\,\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}}{\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}-\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,\left (112\,A+96\,B\right )\,1{}\mathrm {i}}{105\,d\,\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \left (\sec {\left (c + d x \right )} + 1\right )} \left (A + B \sec {\left (c + d x \right )}\right ) \sec ^{3}{\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________